<?php

/*
 * 商品模型
 * @author sky
 * create_time 2017-04-30
 */

namespace App\Front\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Str;
use Intervention\Image\Constraint;
use Intervention\Image\Facades\Image;
use Illuminate\Support\Facades\Storage;

class Register extends Model {
protected $table = 'mini_user';
    // 登录注册
    public static function register($value){
    	return Register::insert($value);
    }
     public static function gologin($name){
     	return Register::where('name',$name)->get();
     }
}
